package com.Example.Model.Cert;

import com.protos.Peer;

public class CertInfo {

    private String credit_code;
    private String name;
    // 可以自己构造一个domain Model，使用fastJson直接对peer.Certificate对象序列化会有问题的
    private Object cert;

    public CertInfo() {
    }

    public CertInfo(String credit_code, String name, Object cert) {
        this.credit_code = credit_code;
        this.name = name;
        this.cert = cert;
    }

    public String getCredit_code() {
        return credit_code;
    }

    public void setCredit_code(String credit_code) {
        this.credit_code = credit_code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Object getCert() {
        return cert;
    }

    public void setCert(Object cert) {
        this.cert = cert;
    }

    @Override
    public String toString() {
        return "CertInfo{" +
                "credit_code='" + credit_code + '\'' +
                ", name='" + name + '\'' +
                ", cert=" + cert +
                '}';
    }
}
